package cn.stylefeng.guns.modular.ums.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 会员账户表
 * </p>
 *
 * @author yzb
 * @since 2019-11-07
 */
@TableName("ums_member_account")
public class MemberAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账户ID
     */
    @TableId(value = "account_id", type = IdType.AUTO)
    private Integer accountId;

    /**
     * 会员ID
     */
    @TableField("member_id")
    private Integer memberId;

    /**
     * 冻结余额
     */
    @TableField("balance_frozen")
    private BigDecimal balanceFrozen;

    /**
     * 可提余额
     */
    @TableField("balance_withdraw")
    private BigDecimal balanceWithdraw;

    /**
     * 可用余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 充值总额
     */
    @TableField("total_recharge")
    private BigDecimal totalRecharge;

    /**
     * 提现总额
     */
    @TableField("total_withdraw")
    private BigDecimal totalWithdraw;

    /**
     * 消费总额
     */
    @TableField("total_consume")
    private BigDecimal totalConsume;

    /**
     * 会员积分
     */
    @TableField("integral")
    private Integer integral;

    /**
     * 累计积分
     */
    @TableField("total_integral")
    private Integer totalIntegral;

    /**
     * 添加时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField("if_del")
    private Integer ifDel;

    /**
     * 删除时间
     */
    @TableField("delete_time")
    private Date deleteTime;


    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getBalanceFrozen() {
        return balanceFrozen;
    }

    public void setBalanceFrozen(BigDecimal balanceFrozen) {
        this.balanceFrozen = balanceFrozen;
    }

    public BigDecimal getBalanceWithdraw() {
        return balanceWithdraw;
    }

    public void setBalanceWithdraw(BigDecimal balanceWithdraw) {
        this.balanceWithdraw = balanceWithdraw;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getTotalRecharge() {
        return totalRecharge;
    }

    public void setTotalRecharge(BigDecimal totalRecharge) {
        this.totalRecharge = totalRecharge;
    }

    public BigDecimal getTotalWithdraw() {
        return totalWithdraw;
    }

    public void setTotalWithdraw(BigDecimal totalWithdraw) {
        this.totalWithdraw = totalWithdraw;
    }

    public BigDecimal getTotalConsume() {
        return totalConsume;
    }

    public void setTotalConsume(BigDecimal totalConsume) {
        this.totalConsume = totalConsume;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getTotalIntegral() {
        return totalIntegral;
    }

    public void setTotalIntegral(Integer totalIntegral) {
        this.totalIntegral = totalIntegral;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIfDel() {
        return ifDel;
    }

    public void setIfDel(Integer ifDel) {
        this.ifDel = ifDel;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "MemberAccount{" +
        "accountId=" + accountId +
        ", memberId=" + memberId +
        ", balanceFrozen=" + balanceFrozen +
        ", balanceWithdraw=" + balanceWithdraw +
        ", balance=" + balance +
        ", totalRecharge=" + totalRecharge +
        ", totalWithdraw=" + totalWithdraw +
        ", totalConsume=" + totalConsume +
        ", integral=" + integral +
        ", totalIntegral=" + totalIntegral +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", ifDel=" + ifDel +
        ", deleteTime=" + deleteTime +
        "}";
    }
}
